from django.db import models

class Bad(models.Model):
	bad_id=models.IntegerField()
	user_id=models.IntegerField()
	content=models.TextField(blank=True,null=True)
	status=models.IntegerField()
	warning_con=models.IntegerField(default=0)
	time=models.DateTimeField(auto_now_add=True)

class Data(models.Model):
	bad_group_con=models.IntegerField(default=0)
	good_group_con=models.IntegerField(default=0)
	bad_course_con=models.IntegerField(default=0)
	good_course_con=models.IntegerField(default=0)
	bad_reward_con=models.IntegerField(default=0)
	good_reward_con=models.IntegerField(default=0)
	bad_user_con=models.IntegerField(default=0)
	good_user_con=models.IntegerField(default=0)
	pass_group_con=models.IntegerField(default=0)
	not_group_con=models.IntegerField(default=0)
	pass_publisher_con=models.IntegerField(default=0)
	not_publisher_con=models.IntegerField(default=0)

class Invite(models.Model):
	email=models.CharField(max_length=50)
	password=models.CharField(max_length=70)
	work=models.CharField(max_length=30)
	sex=models.IntegerField()
	age=models.IntegerField()
	position=models.CharField(max_length=20)
	status=models.IntegerField(default=0)
	time=models.DateTimeField(auto_now_add=True)
	